<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: E73AN
  Date: 2018/5/29
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>register</title>
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
</head>
<body>
<a class="btn btn-info" href="${pageContext.request.contextPath}/" style="margin-left: 10px;margin-top: 10px">返回首页</a>
<div class="container" style="width: 50%">
    <c:if test="${msg != null}">
        <div class="alert alert-primary" role="alert">
                ${msg}
        </div>
    </c:if>
    <h4>注册</h4>
    <form action="${pageContext.request.contextPath}/register" method="post" name="user" class="form-group">
        <input type="text" name="identifyNum" placeholder="学号" class="form-control"><br>
        <input type="text" name="name" placeholder="姓名" class="form-control"><br>
        <select title="性别" name="sex" class="custom-select">
            <option value ="男">男</option>
            <option value ="女">女</option>
        </select><br><br>
        <input type="number" name="age" placeholder="年龄" class="form-control"><br>
        <input type="password" name="password" placeholder="密码" class="form-control"><br>
        <input type="submit" value="注册" class="btn btn-primary">
    </form>
    <c:if test="${errors!=null}" >
        <p>errors</p>
        <c:forEach items="${errors}" var="error">
            <div class="alert alert-danger" role="alert">
                    ${error}
            </div>
        </c:forEach>
    </c:if>
</div>
</body>
</html>
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
